// import Layout from "@/parts/html/layout/index";
import Layout from "@/layout";

// 通用路由
const baseRouter = [
  {
    path: "/redirect",
    component: Layout,
    hidden: true,
    children: [
      {
        path: "/redirect/:path(.*)",
        component: () => import("@/views/redirect/index")
      }
    ]
  },
  {
    path: "/login",
    name: "login",
    hidden: true,
    meta: {
      icon: "",
      title: "登陆"
    },
    component: () => import("@/views/login")
  },
  {
    path: "/",
    component: Layout,
    redirect: "/dashboard",
    name: "home",
    children: [
      {
        path: "dashboard",
        component: () => import("@/views/dashboard/index"),
        name: "dashboard",
        meta: {
          icon: "component",
          title: "首页",
          noCache: true
        }
      }
      // {
      //   path: "",
      //   name: "home_seestarReport",
      //   meta: {
      //     icon: 'component',
      //     title: '首页招募统计，放这里为了显示fn',
      //     fn: 'home_seestarReport'
      //   },
      // },
      // {
      //   path: "",
      //   name: "home_seestarReportByPlatform",
      //   meta: {
      //     icon: 'component',
      //     title: '首页平台统计，放这里为了显示fn',
      //     fn: 'home_seestarReportByPlatform'
      //   },
      // }
    ]
  }
];

export { baseRouter };
